<template>
  <div>
    <h1>首页</h1>
    <input type="text">
  </div>
</template>

<script>

export default {
  // keep-alive 给组件起一个名字
  name: "index",
  created() {
    console.log(this.$hi);

  }
}
</script>

<style lang="scss" scoped></style>